package com.jcark.ui.view.cardview

import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.RectF
import android.util.Log

internal class CardViewApi17Impl : CardViewBaseImpl() {

    override fun initStatic() {
        RoundRectDrawableWithShadow.sRoundRectHelper = object : RoundRectDrawableWithShadow.RoundRectHelper {
            override fun drawRoundRect(canvas: Canvas, bounds: RectF, cornerRadius: Float, paint: Paint?) {
                if (paint != null) {
                    canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint)
                } else {
                    Log.e("CardView", "CardView the paint is null")
                }
            }
        }
    }
}